package com.jone.comic_api.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.framework.controller.AjaxResult;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.jone.comic_api.entity.ComicPage;

/**
 * <p>
 * 前端控制器
 * </p>
 * 
 * @author Yanghu
 * @since 2017-05-26
 */
@RestController
@RequestMapping("/comic/comicPage")
public class ComicPageController extends BaseController {
    @RequestMapping("/getBookChapterPage")
    public String getBookChapterPage(ComicPage comicPage) {
        return callback(new AjaxResult(comicPage.selectList(new EntityWrapper<ComicPage>().eq("chapter_id", comicPage.getChapterId()).orderBy("pageOrder")) ));
    }
}
